import $ from '../../pages/common';
import code from '../../packageA/common/areaCode.js';
Page({
  data: {
    height: "",
    json: code
  },
  onLoad(e) {
    this.data.height = 0
    this.setData({
      height: 0,
    })
  },
  onShow(){
    let jsonCode = code
    this.setData({
      json: jsonCode
    })
  },
  getcode(e){
    let pages = getCurrentPages();
    let prevPage = pages[pages.length - 2];
    prevPage.setData({
      areaCode: e.currentTarget.dataset.item,
    })
    wx.navigateBack({
      delta: 1,
    })
  }
})